﻿#ifndef UDPCODEC_SENSORDATA_H
#define UDPCODEC_SENSORDATA_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include "UdpCodecBase.h"

#include "LogSaver.h"

class MEMSDataCodec;
class UdpCodec_SensorData : public QObject,public ObjAutoInject,public UdpCodecBase
{
  Q_OBJECT
private://dependency
  MEMSDataCodec* mEMSDataCodec=Q_NULLPTR;
  LogSaver* logSaver=LogSaver::getLogSaver();
public:
  explicit UdpCodec_SensorData();
  virtual ~UdpCodec_SensorData();
signals:
public:
  virtual DataPackage_UdpCodec* decode(DataPackage_UdpCodec* dataPackageInfo_Device)override;
public://geter and seter
  MEMSDataCodec* getMEMSDataCodec()const;
  UdpCodec_SensorData* setMEMSDataCodec(MEMSDataCodec * const mEMSDataCodec);
public:
  virtual void objectAutoInjection(QHash<QString, QObject *> *objMap) override;
};

#endif // UDPCODEC_SENSORDATA_H
